<?php
/*
 * Last Edited: 27-7-2013
 */
class GameModel extends Zend_Db_Table_Abstract{
	protected $_name = 'game';
	protected $_primary = 'game_id';
    protected $_id = 'game_id';
    function getVersion($gameId){
    	$db = Zend_Registry::get("connectDB");
    	$mysql = $db->select()
    		->from("game", array("version", "message_vn", "message_eng", "package_name"))
    		->where("game_id = ? ", $gameId);
    	$result = $db->fetchRow($mysql);
    	return $result;
    }
}